const express = require('express');

const app = express();
const router = express.Router();


// 用户登录
const user = require('./user');
router.use(user)


app.use(router)

/** 
 * 匹配404，即路径未匹配时
*/
app.use(function (req:any, res:any) {
  res.status(404).end()
});

/** 
 * 启动服务
*/
app.listen('3660',()=>{
  console.log('start serve success !')
});